package com.ruoyi.performance.api.factory;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.performance.api.RemotePotentialApi;

import com.ruoyi.performance.domain.PotentialClients;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class RemotePotentialFallbackFactory implements FallbackFactory<RemotePotentialApi> {


    @Override
    public RemotePotentialApi create(Throwable cause) {
        return new RemotePotentialApi() {
            @Override
            public TableDataInfo list(PotentialClients potentialClients) {
                return null;
            }
        };
    }
}
